package com.tourismhengyang.beans;

public class Forum {
	private int fid;
	private String fname;
	private String ftime;
	private String fcontent;
	private int lid;
	
	@Override
	public String toString() {
		return "Forum [fid=" + fid + ", fname=" + fname + ", ftime=" + ftime + ", fcontent=" + fcontent + ", lid=" + lid
				+ "]";
	}

	public int getFid() {
		return fid;
	}

	public void setFid(int fid) {
		this.fid = fid;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getFtime() {
		return ftime;
	}

	public void setFtime(String ftime) {
		this.ftime = ftime;
	}

	public String getFcontent() {
		return fcontent;
	}

	public void setFcontent(String fcontent) {
		this.fcontent = fcontent;
	}

	public int getLid() {
		return lid;
	}

	public void setLid(int lid) {
		this.lid = lid;
	}

	public Forum(int fid, String fname, String ftime, String fcontent, int lid) {
		super();
		this.fid = fid;
		this.fname = fname;
		this.ftime = ftime;
		this.fcontent = fcontent;
		this.lid = lid;
	}

	public Forum() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((fcontent == null) ? 0 : fcontent.hashCode());
		result = prime * result + fid;
		result = prime * result + ((fname == null) ? 0 : fname.hashCode());
		result = prime * result + ((ftime == null) ? 0 : ftime.hashCode());
		result = prime * result + lid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Forum other = (Forum) obj;
		if (fcontent == null) {
			if (other.fcontent != null)
				return false;
		} else if (!fcontent.equals(other.fcontent))
			return false;
		if (fid != other.fid)
			return false;
		if (fname == null) {
			if (other.fname != null)
				return false;
		} else if (!fname.equals(other.fname))
			return false;
		if (ftime == null) {
			if (other.ftime != null)
				return false;
		} else if (!ftime.equals(other.ftime))
			return false;
		if (lid != other.lid)
			return false;
		return true;
	}
}
